package pers.emok.springcloud.servicefeignapi.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-provider", path = "/echo")
public interface EchoApi {

    @GetMapping("{data}")
    public String echo(@PathVariable String data);
}
